<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script type="application/javascript" src="/static/webjars/layui/layui.all.js"></script>
<script type="application/javascript" src="/static/js/jquery.min.js"></script>

<script type="application/javascript">
    var url = "${url}";//跳转地址
    var msg = "${msg}";//提示消息
    var type = "${type}";//弹框类型
    var layer = layui.layer;

    init();

    function init() {
       if(url == null || msg == null || type == null){
           layer.msg("未知错误");
           setTimeout(function(){
               window.location.href = "/auth/login";
               return;
           }, 1500);
       }
       layer.msg(msg);
        setTimeout(function(){
                window.location.href = url + "?type=" + type;
        }, 1500);

    }
</script>